package hehe.aop.annotation;

import java.lang.annotation.Annotation;
import java.lang.reflect.Method;

/**
 * 事件注解处理器
 *<B>说明：</B>
 *<pre>
 * 略
 *</pre>
 *<B>示例：</B>
 *<pre>
 *  略
 *</pre>
 *<B>日志：</B>
 *<pre>
 *  略
 *</pre>
 *<B>注意事项：</B>
 *<pre>
 *  略
 *</pre>
 */
public class AspectProcessor extends BaseAspectProcessor
{
    public void method(Class<?> targetclazz, Method method, Annotation annotation)
    {
        String expression = targetclazz.getName() + "." + method.getName();
        String advice = this.getAnnotationAttr("advice",annotation);
        this.configure(annotation,advice);
        this.addAspect(expression);
    }
}
